import request from '@/utils/request'

// 查询航段信息列表
export function listRoutesegment(query) {
  return request({
    url: '/baseinfo/routesegment/list',
    method: 'get',
    params: query
  })
}

// 查询航段信息详细
export function getRoutesegment(segmentid) {
  return request({
    url: '/baseinfo/routesegment/' + segmentid,
    method: 'get'
  })
}

// 新增航段信息
export function addRoutesegment(data) {
  return request({
    url: '/baseinfo/routesegment',
    method: 'post',
    data: data
  })
}

// 修改航段信息
export function updateRoutesegment(data) {
  return request({
    url: '/baseinfo/routesegment',
    method: 'put',
    data: data
  })
}

// 删除航段信息
export function delRoutesegment(segmentid) {
  return request({
    url: '/baseinfo/routesegment/' + segmentid,
    method: 'delete'
  })
}
